#include "Logger.h"
#include <stdio.h>


Logger::Logger()
{
    Logger("log.txt");
}


Logger::Logger(char* filename)
{
    logger_file = fopen(filename,"w");
    count = 1;
}

Logger::~Logger()
{
    fclose(logger_file);
}


void Logger:: printLog(const char* str)
{
    fprintf(logger_file,"[%d] %s\n",count,str);
    count++;
}
